/*
 *
 *
 */

#ifndef GKT_USER_CARD_H
#define GKT_USER_CARD_H

#if defined(GKT_CONFIG_RFID_ENABLE) && GKT_CONFIG_RFID_ENABLE

#define GKT_USER_CARD_ENABLE	1

#ifdef GKT_CONFIG_USER_CARD_ADMIN_MAXNUMS
#define GKT_USER_CARD_ADMIN_MAXNUMS	\
	GKT_CONFIG_USER_CARD_ADMIN_MAXNUMS
#else
#define GKT_USER_CARD_ADMIN_MAXNUMS	0
#endif
#ifdef GKT_CONFIG_USER_CARD_NORMAL_MAXNUMS
#define GKT_USER_CARD_NORMAL_MAXNUMS	\
	GKT_CONFIG_USER_CARD_NORMAL_MAXNUMS
#else
#define GKT_USER_CARD_NORMAL_MAXNUMS	0
#endif
#ifdef GKT_CONFIG_USER_CARD_GUEST_MAXNUMS
#define GKT_USER_CARD_GUEST_MAXNUMS	\
	GKT_CONFIG_USER_CARD_GUEST_MAXNUMS
#else
#define GKT_USER_CARD_GUEST_MAXNUMS	0
#endif

#define GKT_USER_CARD_MAXNUMS	\
	(GKT_USER_CARD_ADMIN_MAXNUMS \
		+ GKT_USER_CARD_NORMAL_MAXNUMS \
		+ GKT_USER_CARD_GUEST_MAXNUMS)

#define GKT_USER_CARD_ID_MINSIZE	4
#define GKT_USER_CARD_ID_MAXSIZE	10

#else

#define GKT_USER_CARD_ENABLE	0

#define GKT_USER_CARD_ADMIN_MAXNUMS	0
#define GKT_USER_CARD_NORMAL_MAXNUMS	0
#define GKT_USER_CARD_GUEST_MAXNUMS	0
#define GKT_USER_CARD_MAXNUMS	0

#endif

#endif	/* GKT_USER_CARD_H */

